package com.example.quartzdemo.service.impl;

import com.example.quartzdemo.annotation.QuartzTaskClass;
import com.example.quartzdemo.annotation.QuartzTaskMethod;
import com.example.quartzdemo.service.QuartzTest;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;

@Service
@Log4j2
@QuartzTaskClass(name = "测试任务类")
public class QuartzTestImpl implements QuartzTest {
    @Override
    @QuartzTaskMethod(name = "日志记录任务")
    public void test() {
        log.info("QuartzTestImpl.test()");
    }
}
